package logic.hashfunctions;

public class HashFunction0 extends AbstractHashFuncion{

	@Override
	public Integer generateHash(String word) {

		int hash = 0;

		for (int i = 0; i < word.length(); i++) {
			char c = word.charAt(i);
			hash ^= c;
		}

		return hash;
	}
}